package cn.loioi.web.components.shiro;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

import org.apache.shiro.web.filter.authc.UserFilter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 打印请求地址
 * @文件 :CustomUserFilter.java
 * @作者 :cn.loioi
 * @创建时间 :2016年10月13日 下午12:57:20
 */
public class CustomUserFilter extends UserFilter {
	private Logger logger = LoggerFactory.getLogger(CustomUserFilter.class);

	@Override
	protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) {
		logger.debug(((HttpServletRequest) request).getRequestURI());
		return super.isAccessAllowed(request, response, mappedValue);
	}
}
